package com.xyh.flowershop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xyh.flowershop.domain.Swipers;
import com.xyh.flowershop.vo.req.swiper.SwiperPageReqVo;
import com.xyh.flowershop.vo.resp.index.SwiperRespVo;
import com.xyh.flowershop.vo.resp.swiper.SwiperPageRespVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
* @author 10728
* @description 针对表【tb_swipers】的数据库操作Mapper
* @createDate 2024-03-31 20:42:21
* @Entity com.xyh.flowershop.domain.Swipers
*/
public interface SwipersMapper extends BaseMapper<Swipers> {

    List<SwiperRespVo> selectSwiperList();

    int deleteSwiper(List<Long> ids);

    IPage<SwiperPageRespVo> selectSwiperPage(IPage<SwiperPageRespVo> pages, @Param("vo") SwiperPageReqVo vo);

    @Update("update tb_swipers set is_use = #{status} where id = #{id}")
    int changeStatus(@Param("id") Long id, @Param("status") Integer status);
}




